// 轮播图
var chartlist = $('.chartimg')
var labellist = $('.labe')
var index = 0
var T = 0
// console.log(labellist)
labellist.click(function(e){
	// console.log($(this).index())
	if($(this).index() == 0){
		chartlist[0].style.display = 'block'
		chartlist[1].style.display = 'none'
		chartlist[2].style.display = 'none'
	}
	if($(this).index() == 1){
		chartlist[1].style.display = 'block'
		chartlist[0].style.display = 'none'
		chartlist[2].style.display = 'none'
	}
	if($(this).index() == 2){
		chartlist[2].style.display = 'block'
		chartlist[0].style.display = 'none'
		chartlist[1].style.display = 'none'
	}
})

var T = 0
var i=0
function autoplay(){
	if(i>2){
		i=0
		chartlist[0].style.display = 'block'
		chartlist[1].style.display = 'none'
		chartlist[2].style.display = 'none'
		
	}
	chartlist[i].style.display = 'block'
	i=i+1
}
T=setInterval("autoplay()",2000)
chartlist.hover(function(){
	clearInterval(T)
},function(){
	T=setInterval("autoplay()",2000)
})